<?php
require_once("../includes/config.inc.php");
require("authentication-check.inc.php");
require_once("../includes/FileDataAccess.inc.php");

$pageTitle = "File List";
$pageDescription = "";

require("../includes/header.inc.php");
?>
<main>
	<div class="content-frame">
		<h3>File List</h3>
		<a href="file-details.php">Add New File</a>
		<?php
		// Construct a FileDataAccess object (pass in the 'link' to the db)
		
		
		// Invoke the getFileList() method and assign the return value to a variable named $files
		// Be careful: unlike getPageList(), getFileList() does not take any parameters.
		

		// invoke displayFiles() and pass $files in as the argument/param, then echo out the return value 
		
		?>
		
	</div>
</main>
		
<?php
if(!empty($sideBar)){
	require("../includes/" . $sideBar);
}

require("../includes/footer.inc.php");

/////////////////
// FUNCTIONS
/////////////////

// Wraps files in an html table
function displayFiles($files){

	// create a starting table tag and stor it in a var named $html
	

	// create column headers
	
	
	// create table rows (loop through the files)
	

	// add the closing table tag
	
	// return the html string

}

?>

